feat: Adding the JaCoCo Method Filter to the project - #147
Conversation
|
|
Since this is intended as a common standard for projects, have you considered introducing it in the root POM instead? Publishing it as a new major version would allow each project to adopt the change explicitly and in a controlled manner, rather than applying it only within Commons. |
Thanks for this comment! This is the first time we face this situation with having something like a root-pom in the project. We discussed the options and I did run several tests to make sure, how would behave the change in the root-pom. I found out that it would be breaking change for the no-migrated projects and even configuration one for the migrated ones. The output from the analysis can be seen below: Please share your thoughts about this analysis. If we merge current working (but not ideal) solution, or we start some bigger migration with several steps. This decision is also on the @miroslavpojer to comment about the impact and our capacities. |
Do not merge it. Move it into blocked in our board. |
|
Well, that LLM lies :) First, there is no migrated/un-migrated dilemma simply because the root POM is a versioned artifact (like any other Maven artifact) that a child project references using a specific version. So, generally speaking, any braking change will stay invisible for child projects until they decided to explicitly upgrade to a newer root POM, which is always done in a controlled manner. There is no silent automatic propagation of changes downstream. Secondly, the JMF plug-in activation can be conditional, depending on existence of the |
|
The |
Yes - I agree with project migration to new root-pom. JMF - I will check why the file is required to be present.
|
Mentioned as internal team TODO/Tech debt? |
I have no idea. It was a quick fix done a while ago in some another repo where it required no maintenance and was deemed a long-term fix, requiring no follow ups. It was you @miroslavpojer who put it to the Root POM, I don't even remember where did you pick it from 🤣 #1a1a43a4 |






Overview
This pull request introduces a comprehensive update to the project's code coverage infrastructure, improving the accuracy and maintainability of JaCoCo coverage reports for Scala code. The main changes include the adoption of the JaCoCo Method Filter (JMF) for filtering out compiler-generated boilerplate from coverage metrics, updates to the GitHub Actions workflow for more efficient and granular coverage reporting, and the addition of a project-specific method filter configuration.
Release Notes
Related
Closes #144